use std::net::SocketAddr;

use tools::enum_generator;

enum_generator! {
;
	SwitchOutSide {
		///bbbb
		Close("关闭",0),
		Open("开启",1), 
	}
}

///一个针对外部对接的命令,目前支持开启和关闭...主要是关闭
#[derive(Debug,Clone,Copy)]
pub struct OutSideCommand {
	pub addr: SocketAddr,
	pub switch: SwitchOutSide,
}